package chapter67;

public class Teacher1 extends Person1 {
	public int wid;
	
	public Teacher1(){
		
	}
	
	public Teacher1(String name, int age, int wid){
		super(name,age);
		this.wid = wid;
	}

	public int getWid() {
		return wid;
	}

	public void setWid(int wid) {
		this.wid = wid;
	}
	
	public void sayHello(){
		super.sayHello();
		System.out.println("，我的工号是"+this.wid);
	}

}
